package com.jlcindia;

public class Lab14 {

	public static void main(String[] args) throws Exception {
		System.out.println("In Main() method");
		ClassLoader loader=Lab14.class.getClassLoader();
		Class.forName("com.jlcindia.Lab14",false,loader);
		System.out.println("class loaded successfully");
		System.out.println("Delete the .class file & press Enter");
		System.in.read();
		Hello h=new Hello();
		h.show();
		h.display();
		new Hello(12).show();
		new Hello(89,"JLC").show();
		new Hello().display();
		System.out.println(Hello.value);
	}
}
class Hello{
	int ab;
	String msg;
	static int value=1234;
	Hello(){
		System.out.println("==Hello() cons==");
	}
	Hello(int ab){
		//this.ab=ab;
		System.out.println("==Hello(int) cons==");
	}
	Hello(int ab,String msg){
		System.out.println("==Hello(int,String) cons==");
	}
	void show(){
		System.out.println("==show() in Hello==");
		System.out.println(ab);
		System.out.println(msg);
	}
	void display(){
		System.out.println("==display() in Hello==");
	}
}
